package com.jsj.service;

import com.jsj.dao.TeacherDao;
import com.jsj.domain.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TeacherService {
    private TeacherDao teacherDao;

    @Autowired
    public void setTeacherDao(TeacherDao teacherDao) {
        this.teacherDao = teacherDao;
    }

    public Teacher queryByUserName(String username) {
        return teacherDao.queryByUserName(username);
    }

}
